<template>
  <div>
    <div class="home text-center">{{ home }}</div>
    <button @click="mock">测试接口</button>
  </div>
</template>

<script>
export default {
  name: "home",
  data() {
    return {
      home: "别看了这里啥也没有"
    };
  },
  components: {},
  methods: {
    mock() {
      var url =
        "https://mockapi.eolinker.com/6bSx7Afdb3d0356201003058ae87cfe77bab2f2c0898e8b/getList";
      var params = { token: "token" };
      this.$axios
        .post(url, { token: "token" })
        .then(res => {
          console.log(res);
          // this.tall = false;
          // localStorage.removeItem("hasCache");
          // localStorage.removeItem("cacheParams");
          // setTimeout(() => {
          //   this.$router.go(0);
          //   location.reload();
          // }, 1000);
        })
        .catch(err => {});
    }
  }
};
</script>

<style>
.home {
  margin-top: 10%;
  font-size: 2.4em;
  font-weight: bold;
}
</style>
